

<div class="alert alert-warning">样式分类与名字不符合自己习惯，总是找不到，重新自定义名称，按自己预期的标题来搜索查找。</div>
{{$this->Form->create('Favorite',array('action'=>'edit',$id),array('class'=>'form-horizontal','role'=>'form'))}}
	<div class="form-group clearfix">
		<p>原样式名称:{{$data_info['name']}}</p>
	</div>
	<div class="form-group clearfix">
		<label class="col-sm-4 control-label" for="ProductName">样式分类：</label>
		<div class="col-sm-8 controls form-inline">
			{{$this->Form->input('cate_id',array('class'=>'form-control','id'=>'FavoriteCateId'.$id,'div'=>false,'label'=>false))}}
			<p><a target="_blank" href="{{$this->Html->url(array('controller'=>'user_cates','action'=>'add','Favorite'))}}">新增分类</a>
				&nbsp;&nbsp;<a href="javascript:loadUserCateOptions('#FavoriteCateId{{$id}}','Favorite')">刷新分类选项</a>
				</p>
		</div>
	</div>
	<div class="form-group clearfix">
		<label class="col-sm-4 control-label" for="ProductName">自定义样式名：</label>
		<div class="col-sm-8 controls">
			{{$this->Form->hidden('id')}}
			{{$this->Form->input('name',array('class'=>'form-control','div'=>false,'label'=>false))}}
		</div>
	</div>
	
	
	<div class="form-group">
		<label class="col-sm-4 control-label" for="ProductName"></label>
		<div class="col-sm-8"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}

